home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / c / objam01.lha / objam / runtime / Makefile < prev    next >
Encoding:
Makefile  |  1995-02-10  |  1.8 KB  |  53 lines

  1. # ObjectiveAmiga: Makefile for objc-*.library
  2. # See GNU:lib/libobjam/ReadMe for details
  3.  
  4.  
  5. GCC        = gcc
  6. GCC_CFLAGS    = -V2.5.8 -O2 -I$(OBJCINCDIR) -DAMIGAOS_39
  7.  
  8. RM        = rm -f
  9. CP        = cp
  10. PERL        = /sys/shell-tools/perl
  11. CONV_P        = /gnu/geninline/conv.p
  12. FLUSH        = /c/flushlibs
  13.  
  14. OBJS        = libinitr.o objclib.o zone.o misc.o atom.o objects.o encoding.o sarray.o
  15.  
  16. # The library name has currently got compatibility codes in it. These enable me
  17. # to do changes which affect backward compatibility. In that case the codes
  18. # change. If ObjectiveAmiga will ever get finished, at least the Runtime code
  19. # should disappear (or remain constant). The ObjC and Protocol versions are the
  20. # ones of the gcc 2.5.8 Objective C compiler, the only one which is supported
  21. # at the moment. In the future there could be other versions of the library for
  22. # different gcc releases or maybe even one version which can deal with code
  23. # from all compiler versions.
  24. #
  25. LIBNAME        = objc-5-2-3.library
  26. #               | | |        Compatibility codes
  27. #         ObjC -----+ | |        ~~~~~~~~~~~~~~~~~~~
  28. #     Protocol -------+ |        Change in:
  29. #      Runtime ---------+        - include/libraries/objc.h
  30.  
  31.  
  32. .c.o:
  33.         $(GCC) $(GCC_CFLAGS) -o $@ $< -c
  34.  
  35. all:        install-headers $(LIBNAME)
  36.  
  37. $(LIBNAME): $(OBJS)
  38.         $(GCC) -nostdlib -resident $(GCC_CFLAGS) -o $@ $(OBJS) -L/gnu/lib/libnix -lnix # -lamiga -lgcc
  39.         -$(CP) $(LIBNAME) /libs/
  40.         $(FLUSH)
  41.  
  42. install-headers: include/inline/objc.h
  43.         -$(CP) include/libraries/objc.h $(OBJCINCDIR)/libraries/
  44.         -$(CP) include/inline/objc.h $(OBJCINCDIR)/inline/
  45.         -$(CP) include/proto/objc.h $(OBJCINCDIR)/proto/
  46.         -$(CP) include/clib/objc_protos.h $(OBJCINCDIR)/clib/
  47.  
  48. include/inline/objc.h: objc_lib.fd include/clib/objc_protos.h
  49.         $(PERL) $(CONV_P) include/clib/objc_protos.h objc_lib.fd > include/inline/objc.h
  50.  
  51. clean:
  52.         -$(RM) *.o objc*.library
  53.